<?php
/**
 * View newindex Registro
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    16-mag-2014
 * @package    Registro
 * @copyright  Copyright (c) 2014  Luigi Pastore
 */
?>
<script type="text/javascript">
    //<![CDATA[

    //]]>
</script>
<div class="info">
    ...
</div>
<div id="content">
    <form id="form-live" class="reg" method="post" action="/admin/attivita/info/id/<?php echo $this->activity_id ?>">

        <ul>
            <li id="errorLi" style="<?php echo $this->errorMsg ? '' : 'display:none' ?>">
                <h3 id="errorMsgLbl">Si &egrave; verificato un problema durante l'invio del modulo.</h3>
                <p id="errorMsg">
                    Di seguito trovi evidenziati gli errori riscontrati.<?php $this->errorMsg ? var_dump( $this->errorMsg ) : '' ?>
                </p>
            </li>

            <li class="section">
                <h3>Cosa?</h3>
                <div id="instruct3">Inserisci la descrizione dell'attivit&agrave;.</div>
            </li>
            <li class="<?php echo $this->errorMsg['activity_assignedto'] ? 'error' : '' ?>">
                <label class="desc <?php echo $this->errorMsg['activity_assignedto'] ? 'error' : '' ?>">Seleziona marca:</label>
                <div>
                    <select class="field select medium" name="activity_assignedto" id="activity_assignedto">
                        <option value=""></option>
                        <?php if( count( $this->brands ) ) : 
                                foreach( $this->users AS $k => $user ): ?>
                        <option value="<?php echo $k?>" <?php echo $this->data['activity_assignedto'] == $k ? 'selected="selected"' : '' ?> ><?php echo $user['user_firstname']?> <?php echo $user['user_lastname']?></option>
                        <?php endforeach; endif; ?>
                    </select>
                </div>
                <p class="error" style="<?php echo $this->errorMsg['post_category'] ? 'display:block' : '' ?>"><?php echo $this->errorMsg['post_category'] ?></p>
            </li>
            <li><div class="orBox">-- oppure --</div></li>
            <li class="<?php echo $this->errorMsg['activity_title'] ? 'error' : '' ?>">
                <label class="desc <?php echo $this->errorMsg['activity_title'] ? 'error' : '' ?>">Inserisci nuova marca<span class="req">*</span></label>
                <div>
                    <span>
                        <input id="activity_title" name="activity_title" class="field text medium" type="text" maxlength="255" value="<?php echo $this->data['activity_title'] ?>" /> 
                    </span>
                </div>
                <p class="error" style="<?php echo $this->errorMsg['activity_title'] ? 'display:block' : '' ?>"><?php echo $this->errorMsg['activity_title'] ?></p>
            </li>            
        </ul>
    </form>

</div>